package com.ztgf.commodity.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/*
 * @author: chenyu.wang
 * @date: 2020-08-19
 * @description:
 */
@Data
public class CommodityEvaluationOneVO implements Serializable {

    @ApiModelProperty(value = "订单商品表id")
    private Long id;

    @ApiModelProperty(value = "商品id")
    private Long goodsId;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "商品图片")
    private String logoUrl;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品价格")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "评价人数")
    private Integer evaluationNum;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "下单时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty(value = "卖家店铺id")
    private Long sellerShopId;
}
